import request from "@/utils/http/request";

export const uploadImage = (data: any) => {
  return request({
    url: "client/put-file",
    method: "post",
    data,
    headers: {
      "Content-Type": "multipart/form-data",
    },
  });
};

export const uploadImageOcr = (data: any) => {
  return request({
    url: "client/idcard/ocr",
    method: "post",
    data,
    headers: {
      "Content-Type": "multipart/form-data",
    },
    hideLoading: true,
  });
};

// stat 点击量
export function countPv(data: any) {
  // return mockApi(data);

  return request({
    url: `appChannel/saveClick`,
    method: "POST",
    data: data,
  });
}
